//
//  LYCameraPreviewView.m
//  CustomCamera
//
//  Created by SuJiang on 2018/4/2.
//  Copyright © 2018年 appscomm. All rights reserved.
//

#import "LYCameraPreviewView.h"

@implementation LYCameraPreviewView

+ (Class) layerClass
{
    return [AVCaptureVideoPreviewLayer class];
}

- (AVCaptureSession *)session
{
    AVCaptureVideoPreviewLayer *previewLayer = (AVCaptureVideoPreviewLayer *)self.layer;
    return previewLayer.session;
}

- (void)setSession:(AVCaptureSession *)session
{
    AVCaptureVideoPreviewLayer *previewLayer = (AVCaptureVideoPreviewLayer *)self.layer;
    previewLayer.session = session;
}

@end
